#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 6.3.22 11:46 AM
# @File    : main_page.py
from src.common.base_page import BasePage
from utils.log_manager import Logger


class MainPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)
        self.logger = Logger(loggername=self.__class__.__name__).get_logger()

    # 工作台
    def dashboard(self):
        self.logger.info(u'找到"工作天"按钮')
        return self.driver.find_elements_by_class_name('heard-ctxt')[0]
